package org.fkit.domain;

public class Student
{
    private Integer id;
    
    private String name;
    
    private String sex;
    
    private Integer age;
    
    // 关联的Clazz对象
    private Clazz clazz;
    
    public Student()
    {
        super();
    }
    
    public Integer getId()
    {
        return id;
    }
    
    public void setId(Integer id)
    {
        this.id = id;
    }
    
    public String getName()
    {
        return name;
    }
    
    public void setName(String name)
    {
        this.name = name;
    }
    
    public String getSex()
    {
        return sex;
    }
    
    public void setSex(String sex)
    {
        this.sex = sex;
    }
    
    public Integer getAge()
    {
        return age;
    }
    
    public void setAge(Integer age)
    {
        this.age = age;
    }
    
    public Clazz getClazz()
    {
        return clazz;
    }
    
    public void setClazz(Clazz clazz)
    {
        this.clazz = clazz;
    }
    
    @Override
    public String toString()
    {
        return "Student [id=" + id + ", name=" + name + ", sex=" + sex + ", age=" + age + ", clazz=" + clazz + "]";
    }
}
